from flask import render_template, Blueprint

layui = Blueprint('admin_layui', __name__)

@layui.route('/')
def index():
    return render_template('layui/admin/dashboard.html',active_page='dashboard')
@layui.route('/dashboard')
def dashboard():
    return render_template('layui/admin/dashboard.html', active_page='dashboard')

@layui.route('/categories')
def categories():
    return render_template('layui/admin/categories.html', active_page='categories')

@layui.route('/suggestions')
def suggestions():
    return render_template('layui/admin/suggestions.html', active_page='suggestions')

@layui.route('/users')
def users():
    return render_template('layui/admin/users.html',  active_page='users')

@layui.route('/websites')
def websites():
    return render_template('layui/admin/websites.html',  active_page='websites')

@layui.route('/images')
def images():
    return render_template('layui/admin/images.html',  active_page='images')

@layui.route('/logs')
def logs():
    return render_template('layui/admin/logs.html',  active_page='logs')

@layui.route('/login')
def login():
    return render_template('layui/admin/login.html', active_page='login')